﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using WeShare.WeiXin.Common;
using WeShare.WeiXin.Mp;

namespace WebCoreTest.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class WxController : ControllerBase
    {
        public ActionResult MessageHandler()
        {
            var result = HttpContext.Register<MsgHandler>(new EnterParamConfig
            {
                appid = "wxd7008116979a800d",
                EncodingAESKey = "",
                token = "weixintoken"
            });
            return new ContentResult { Content = result };
        }
    }
}
